Skip to content

introduce a fake Temporal Cloud server - #33

Merged
jaypipes merged 2 commits into
mainfrom
fake-cloud-service
Oct 27, 2026
Merged

jaypipes merged 2 commits into
mainfrom
fake-cloud-service

Conversation

@jaypipes

@jaypipes jaypipes commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

Adds functionality for starting a fake Temporal Cloud server for use in unit testing. Updates the base reconciler and derived reconciler for namespace controller to use newly refactored
kube-temporal/pkg/testutil library and
kube-temporal/pkg/types.Resource interfaces.

Issue #7

Adds functionality for starting a fake Temporal Cloud server for use in
unit testing. Updates the base reconciler and derived reconciler for
namespace controller to use newly refactored
`kube-temporal/pkg/testutil` library and
`kube-temporal/pkg/types.Resource` interfaces from kube-temporal@v0.5.0

Signed-off-by: Jay Pipes <jay.pipes@temporal.io>
@jaypipes
jaypipes requested a review from tomba7 October 26, 2026 08:24
Comment thread controller/namespace/reconcile.go Outdated
Comment on lines +115 to +118
req := tcloudservicev1.GetNamespaceRequest{}
resp, err := tcc.GetNamespace(ctx, &req)
if err != nil {
return fmt.Errorf("failed getting tcloud namespace: %w", err)

@zainawaisn zainawaisn Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this would fail against the real Temporal server since an empty GetNamespaceRequest struct will cause GetNamespace() on the saas-control-plane side to emit an error. If this is just an item for later implementation, no worries then.

@niyomukiza-mechack niyomukiza-mechack left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT!

Signed-off-by: Jay Pipes <jaypipes@gmail.com>
@jaypipes
jaypipes merged commit afe0eef into main Oct 27, 2026
7 checks passed
@jaypipes
jaypipes deleted the fake-cloud-service branch October 27, 2026 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants